
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>商品信息</title>
</head>
<body>
<table cellpadding="0" cellspacing="0" border="2" width="500" align="center">
<tr >
    <th>编号</th>
    <th>商品名</th>
    <th>价格</th>
    <th>操作</th>
    <c:forEach var="pro" items="${prolist}">
<tr align="center">
    <td>${pro.pid}</td>
    <td>${pro.pname}</td>
    <td>${pro.price}</td>
    <td>
        <a href="ProductServlet?flag=addTrolley&pid=${pro.pid}">添加到购物车</a>
    </td>
</tr>
    </c:forEach>
</tr>
</table>
</body>
</html>
